package me.shiqiang.im.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;

import java.util.Map;

/**
 * Created by John on 2018/3/6
 */
@RedisHash("users:friendRequests")
public class UserFriendRequests {
    @Id
    private Long userId;
    private Map<Long, FriendRequest> friendRequests;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Map<Long, FriendRequest> getFriendRequests() {
        return friendRequests;
    }

    public void setFriendRequests(Map<Long, FriendRequest> friendRequests) {
        this.friendRequests = friendRequests;
    }
}
